<!-- контент раздела -->
{{:topics forum_topic_sort=='comment_count'}}
  <ul class="listmenu-">
    <li><a href="?sort=date">Последние комментарии</a></li>
    <li class="selected-">Самое обсуждаемое</li>
  </ul>
  <div id="itemslist">
    {{:items forum_topic_sort=='comment_count'}}
    <div class="list-">
      {{!for forum_topic_list do=@:forum_list_item}}
    </div>
    {{/:items}}
    {{@:items}}
  </div>
{{/:topics}}

{{:topics}}
  <ul class="listmenu-">
    <li class="selected-">Последние комментарии</li>
    <li><a href="?sort=comment_count">Самое обсуждаемое</a></li>
  </ul>
  <div id="itemslist">
    {{:items}}
        <div class="list-">
		  {{!for forum_topic_list do=@:forum_list_date}}

		  {{:forum_list_date *new_date}}
			<div class="date-"><span>{{*new_date | date '%d %M'}}</span></div>
			{{@:forum_list_item}}
		  {{/:forum_list_date}}

		  {{:forum_list_date}}
			{{@:forum_list_item}}
		  {{/:forum_list_date}}
		</div>
    {{/:items}}
    {{@:items}}
  </div>
{{/:topics}}

{{:forum_list_item}}
  <div class="item-">
    <div class="author-"><a href="{{/}}{{community.url}}/members/{{*poster.url}}">{{*poster.name}}</a></div>
    {{?*comment_count}}
    <div class="comment-"><span class="ccount-">{{*comment_count}}</span> <a href="{{/}}{{community.url}}/members/{{*last_comment.poster.url}}" class="cauthor-">{{*last_comment.poster.name}}</a>:  <a href="{{/}}{{*community_url}}/{{*post.link}}?parent_oid={{*last_comment.oid}}&submit=1" class="cbody-">{{*last_comment.body | safe}}</a></div>
    {{/?}}
    <div class="time-">{{!date oformat='%H:%i' date=*ctime}}</div>
    <div class="body-"><a href="{{/}}{{*community_url}}/{{*post.link}}" class="ptitle-">{{*post.title}}</a>{{*post.body | safe}}</div>
  </div>
{{/:forum_list_item}}
